/*
** philo.h for philosophes in /home/cedric/work/cunix/philo
** 
** Made by Cedric
** Login   <cedric@epitech.net>
** 
** Started on  Wed May  4 15:55:55 2011 Cedric
** Last update Wed May  4 17:03:24 2011 kevin costa
*/

#ifndef _PHILO_H_
#define _PHILO_H_

#include <sys/types.h>

typedef			enum
{
  vide,
  plein,
  dispo
}			baguette;

typedef struct		s_philo
{
  char			p; /* Numero de philosophe */
  baguette		g; /* Gauche */
  baguette		d; /* Droite */
  int			j; /* Energie */
  struct s_philo	*next;
  struct s_philo	*prev;
  struct s_philo	*head;
}			t_philo;

void	xwrite(int fildes, const void *buf, size_t nbyte);

#endif /* !_PHILO_H_ */
